package com.yupi.springbootinit.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yupi.springbootinit.constant.ChartConstant;
import com.yupi.springbootinit.model.entity.Chart;
import com.yupi.springbootinit.service.ChartService;
import com.yupi.springbootinit.mapper.ChartMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【chart(图表信息表)】的数据库操作Service实现
* @createDate 2025-02-02 13:21:03
*/
@Service
public class ChartServiceImpl extends ServiceImpl<ChartMapper, Chart>
    implements ChartService{

    @Override
    public void handleChartUpdateError(Long chartId, String execMessage) {
        Chart updateSucceed = new Chart();
        updateSucceed.setId(chartId);
        updateSucceed.setStatus(ChartConstant.FAILED);
        updateSucceed.setExecMessage(execMessage);
        updateById(updateSucceed);
    }
}




